include_directories(
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
	${UNMANAGED_INCLUDE_DIR}
	${UTILITIES_COMMON_INCLUDE_DIR}
	${UTILITIES_OWS_INCLUDE_DIR}
	${GDAL_INCLUDE_DIR}
	)

set( WMSProvider_SRCS
   FdoWmsCommandCapabilities.cpp
   FdoWmsConnectionCapabilities.cpp
   FdoWmsConnection.cpp
   FdoWmsConnectionInfo.cpp
   FdoWmsDataReader.cpp
   FdoWmsDescribeSchemaCommand.cpp
   FdoWmsExpressionCapabilities.cpp
   FdoWmsFeatureReader.cpp
   FdoWmsFilterCapabilities.cpp
   FdoWmsGeometryCapabilities.cpp
   FdoWmsRasterCapabilities.cpp
   FdoWmsSchemaCapabilities.cpp
   FdoWmsSelectCommand.cpp
   FdoWmsTopologyCapabilities.cpp
   FdoWmsUtils.cpp
   FdoWmsActivateSpatialContextCommand.cpp
   FdoWmsGetSpatialContextsCommand.cpp
   FdoWmsSpatialContextReader.cpp
   FdoWmsBandRasterGdal.cpp
   FdoWmsRasterGdal.cpp
   FdoWmsImage.cpp
   FdoWmsRasterPropertyDictionaryGdal.cpp
   FdoWmsStreamReaderGdalByRow.cpp
   FdoWmsDescribeSchemaMappingCommand.cpp
   FdoWmsDimension.cpp
   FdoWmsLayerCollection.cpp
   FdoWmsBoundingBoxCollection.cpp
   FdoWmsLayer.cpp
   FdoWmsBoundingBox.cpp
   FdoWmsServiceMetadata.cpp
   FdoWmsCapabilities.cpp
   FdoWmsStyleCollection.cpp
   FdoWmsDelegate.cpp
   FdoWmsStyle.cpp
   FdoWmsDimensionCollection.cpp
   FdoWmsRequestMetadata.cpp
   FdoWmsGetMap.cpp
   FdoWmsSelectAggregatesCommand.cpp
   FdoWmsSpatialExtentsAggregateReader.cpp
   FdoWmsGetFeatureClassCRSNames.cpp
   FdoWmsGetFeatureClassStyles.cpp
   FdoWmsGetImageFormats.cpp
)

add_library( WMSProvider SHARED ${WMSProvider_SRCS} )

target_link_libraries( WMSProvider
	FDO
	ProvidersCommon
	FdoOws
	WMSOverrides
	${GDAL_LIBRARY}
	pthread
 )

set_target_properties( WMSProvider PROPERTIES VERSION ${FDO_VERSION} SOVERSION ${FDO_VERSION_MAJOR} )
install( TARGETS WMSProvider DESTINATION ${LIB_INSTALL_DIR} )
